package com.cmz.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * 请求响应元数据
 * @author cmz
 */
@Getter
@Setter
@ApiModel("请求响应元数据")
public class Meta implements Serializable {

    /** 全局跟踪号 */
    @ApiModelProperty(name = "globalTraceNumber", value = "全局跟踪号")
    private String globalTraceNumber;

    /** 服务版本号 */
    @ApiModelProperty(name = "version", value = "服务版本号")
    private String version;

    /** 请求时间 */
    @ApiModelProperty(name = "requestTime", value = "客户端请求时间")
    private Date requestTime;

    /** 响应时间 */
    @ApiModelProperty(name = "requestTime", value = "服务端响应时间")
    private Date responseTime;

}
